<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">门店名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" value="{$vo.name|default=''}" required placeholder="请输入门店名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">门店编码</label>
            <div class="layui-input-block">
                <input type="text" name="code" value="{$vo.code|default=''}" placeholder="请输入门店编码（唯一）" class="layui-input">
                <div class="layui-form-mid layui-word-aux">门店的唯一标识，如：STORE001</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input type="text" name="contact" value="{$vo.contact|default=''}" placeholder="请输入联系人姓名" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" value="{$vo.phone|default=''}" placeholder="请输入联系电话" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">门店地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" value="{$vo.address|default=''}" placeholder="请输入门店地址" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序权重</label>
            <div class="layui-input-block">
                <input type="number" name="sort" value="{$vo.sort|default='0'}" placeholder="请输入排序权重" class="layui-input">
                <div class="layui-form-mid layui-word-aux">数值越大越靠前</div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">门店状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="正常" {eq name='vo.status|default=1' value='1'}checked{/eq}>
                <input type="radio" name="status" value="0" title="禁用" {eq name='vo.status|default=1' value='0'}checked{/eq}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">备注说明</label>
            <div class="layui-input-block">
                <textarea name="remark" placeholder="请输入备注说明" class="layui-textarea">{$vo.remark|default=''}</textarea>
            </div>
        </div>
        <div class="hr-line-dashed"></div>
        <div class="layui-form-item text-center">
            {notempty name='vo.id'}
            <input type="hidden" name="id" value="{$vo.id}">
            {/notempty}
            <button class="layui-btn" type="submit">保存数据</button>
            <button class="layui-btn layui-btn-danger" type="button" data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
        </div>
    </div>
</form>

